import JsonData from "../../Json.js";
let { groomName, groomAvatar} = JsonData.invite;
Component({
    properties: {
      isShowBadge: String,
      receivedTimeArr: Array
    },
    data: {
      groomName: groomName,
      avatarUrl: groomAvatar,
    },
    detached: function() {},
    methods: {
        toSessionPage: function() {
            this.triggerEvent("hideBadgeEvent", {
                isShowBadge: "none"
            });
            wx.navigateTo({
                url: "../session/session?receivedTime=" + this.data.receivedTimeArr[0]
            });
        }
    }
});